package com.ruoyi.app.controller.pay.controller;

import com.ruoyi.app.framework.base.BaseAppController;
import com.ruoyi.app.controller.pay.service.IPayService;
import com.ruoyi.common.annotation.PassToken;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/api/wxPay")
public class WxPayController extends BaseAppController {

    @Autowired
    private IPayService payService;

    @PostMapping("/petrolOrderNotify")
    @PassToken
    public String petrolOrderNotify(HttpServletRequest request) {
        return payService.wxPayNotifyHandle(request, "IShopPetrolOrderService");
    }

    @PostMapping("/memberRechargeOrderNotify")
    @PassToken
    public String memberRechargeOrderNotify(HttpServletRequest request) {
        return payService.wxPayNotifyHandle(request, "IMemberRechargeOrderService");
    }



}
